﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Galaxian
{
    public class EnemyShip : GameObject, IShootable
    {
        private char Symbol { get; set; }

        //from me (gardax)
        public EnemyShip(Position pos, bool shoot, int millsec = 1000, char symbol = 'V')
            : base(pos, Objects.Enemy, shoot, millsec)
        {
            this.Timer = DateTime.Now;
            this.Symbol = symbol;
        }

        public override void Update()
        {
        }

        public void Shoot(Projectile proj)
        {
            proj.AutoMove();
        }

        public override Position GetPosition()
        {
            return this.Position;
        }

        public override char[,] GetImage()
        {
            return new char[,] { { this.Symbol } };
        }

        public override bool CanCollideWith(Objects obj)
        {
            return obj==Objects.Projectile || obj == Objects.Ship;
           
        }
        //end
    }
}
